package com.vincent.dao;

import com.vincent.model.SystemSetting;
import com.vincent.model.SystemSettingWithBLOBs;
import org.springframework.stereotype.Component;

@Component("systemSettingMapper")
public interface SystemSettingMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SystemSettingWithBLOBs record);

    int insertSelective(SystemSettingWithBLOBs record);

    SystemSettingWithBLOBs selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SystemSettingWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(SystemSettingWithBLOBs record);

    int updateByPrimaryKey(SystemSetting record);

    /**
     * 获取最新的系统设置
     * @return
     */
    SystemSettingWithBLOBs selectLatest();
}